﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace RBAC.MaHaiBo.API.Application.Command.SlaughterCommand
{
    public class AddSlaughterFirmCommand : IRequest<int>
    {
        /// <summary>
        /// 公司ID
        /// </summary>
        public int Firmid { get; set; }
        /// <summary>
        /// 所在省份
        /// </summary>
        public int provinceId { get; set; }
        /// <summary>
        /// 所在市
        /// </summary>
        public int cityId { get; set; }
        /// <summary>
        /// 所在县
        /// </summary>
        public int countyId { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string? address { get; set; }
        /// <summary>
        /// 成立日期
        /// </summary>
        public DateTime EstablishTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 公司简介
        /// </summary>
        public string? FirmSynopsis { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? LOT { get; set; }
        /// <summary>
        /// 屠宰公司名称
        /// </summary>
        public string? SlaughterFirmName { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string? FirmName { get; set; }
        /// <summary>
        /// 生产许可
        /// </summary>
        public string? ProductionPermit { get; set; }


        /// <summary>
        /// 养殖场
        /// </summary>
        public string? farmFirm { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public string? principal { get; set; }
        /// <summary>
        /// 存栏数量
        /// </summary>
        public int NumberOfFields { get; set; }

        /// <summary>
        /// 动态添加人物
        /// </summary>
        public int Uid { get; set; } = 0;

        /// <summary>
        /// 添加人
        /// </summary>
        public string? AddName { get; set; } = "张三";
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdTime { get; set; }

        /// <summary>
        /// 删除人
        /// </summary>
        public string? DelName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DelTime { get; set; }
    }
}
